<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap-responsive.css">
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap-responsive.min.css">
        <link rel="stylesheet" type="text/css" href="../view/css/estilo.css">

        <script type="text/javascript" src="../view/js/monitor.js"></script>
        <script type="text/javascript" src="../view/js/bootstrap.js"></script>
        <script type="text/javascript" src="../view/js/bootstrap.min.js"></script>

        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <?php include 'Menu.php'; ?>
        <div classe="img-canto">
            <img src="../view/img/monitoria.jpg" height="100%" style=" height: 200px;width: 350px;padding-left: 0px; margin-bottom: 20px;" ></div>


        <form class="form-horizontal" action="InsereMonitor.php" method="post" >
            <div class="control-group">
                <label class="control-label" for="inputEmail"> Nome</label>
                <div class="controls">             
                    <input class="span4" type="text" name="nomeMonitor" >
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEmail">Sobrenome</label>
                <div class="controls">
                    <input width="500" type="text"  id="inputEmail" name="sobrenomeMonitor">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEmail">Email</label>
                <div class="controls">
                    <input width="500" type="text"  id="inputEmail" name="emailMonitor">
                </div>
            </div>
          
            <div class="control-group">
                <label class="control-label" for="inputEmail">Senha</label>
                <div class="controls">
                    <input width="500" type="text"  id="inputEmail" name="senhaMonitor">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEmail">Horário Monitoria</label>
                <div class="controls">
                    <select name="horarioMonitor">
                        <option value="7h - 10h">7h - 10h</option>
                        <option value="7h - 11h">7h - 11h</option>
                        <option value="8h - 11h">8h - 11h</option>
                        <option value="8h - 12h">8h - 12h</option> 
                        <option value="9h - 11h">9h - 11h</option>
                        <option value="13h - 16h">13h - 16h</option>
                        <option value="13h - 17h">13h - 17h</option>
                        <option value="14h - 15h">14h - 15h</option>
                        <option value="14h - 18h">14h - 18h</option>
                        <option value="15h - 18h">15h - 18h</option>
                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEmail">Curso</label>
                <div class="controls">  

                      <?php
                    include 'conexao.php';
                    $sql = "select count(*) from curso";
                    $resultado1 = mysql_query($sql, $conexao);
                    $cont = mysql_result($resultado1, 0, "count(*)"); //pegando quantidade

                    $sql1 = "select * from curso";
                    $resultado = mysql_query($sql1, $conexao);
                  echo "<select name = 'listaCurso'>";
                    for($i = 0; $i< $cont; $i++){
                         $nomeCurso = mysql_result($resultado,$i, "nome");
                         $turno = mysql_result($resultado,$i, "turno");
                       echo "<option value=".$nomeCurso.">" . $nomeCurso . "/".$turno."</option>";  
                    }
                       echo "</select>"; 
                    mysql_close($conexao);
                    
                    ?>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEmail">Materia</label>
                <div class="controls">  
                    <?php
                    include 'conexao.php';
                    $sql = "select count(*) from materia";
                    $resultado1 = mysql_query($sql, $conexao);
                    $cont = mysql_result($resultado1, 0, "count(*)"); //pegando quantidade

                    $sql1 = "select * from materia";
                    $resultado = mysql_query($sql1, $conexao);
                  echo "<select name='listaMateria'>";
                    for($i = 0; $i< $cont; $i++){
                        $nomeMateria = mysql_result($resultado,$i, "nome") ;
                       echo "<option value=".$nomeMateria.">" . $nomeMateria . "</option>";  
                    }
                       echo "</select>"; 
                    mysql_close($conexao);
                    
                    ?>

                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEmail">Orientador</label>
                <div class="controls">
                     <?php
                    include 'conexao.php';
                    $sqlProf = "select count(*) from professor";
                    $resultado4 = mysql_query($sqlProf, $conexao);
                    $contProf = mysql_result($resultado4, 0, "count(*)"); //pegando quantidade

                    $sqlProf1 = "select * from professor";
                    $resultado5 = mysql_query($sqlProf1, $conexao);
                  echo "<select name='listaProfessor'>";
                    for($i = 0; $i< $contProf; $i++){
                        $id = mysql_result($resultado5,$i, "idProfessor") ;
                        $nomeProfessor = mysql_result($resultado5,$i, "nome") ;
                       echo "<option value=" .$id.">" .$nomeProfessor . "</option>";  
                    }
                       echo "</select>"; 
                    mysql_close($conexao);
                    
                    ?>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEmail">Ano de Ingresso na monitoria</label>
                <div class="controls">
                    <select name="ano">
                        <option value="2010">2010</option>
                        <option value="2011">2011</option>
                        <option value="2012">2012</option>
                        <option value="2013">2013</option>
                        <option value="2014">2014</option>
                        <option value="2015">2015</option>
                        <option value="2016">2016</option>

                    </select>                </div>
            </div>
            <div class="control-group">
                <div class="controls">              
                    <input type="submit" class="btn" value="Confirmar" id="inseriMonitor" >
                </div>
            </div>
        </form>

    </body>
</html>
